package com.xuxin.pda.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.xuxin.pda.R;
import com.xuxin.pda.bean.TrashSummaryBean;

import org.jetbrains.annotations.NotNull;

/**
 * Created by xu_xin
 * Created on 2021/2/8 0008
 */
public class TrashSummaryAdapter extends BaseQuickAdapter<TrashSummaryBean.ResultBean.MInMOrDQueryBean, BaseViewHolder> {

    public TrashSummaryAdapter() {
        super(R.layout.item_trash_summary);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder holder, TrashSummaryBean.ResultBean.MInMOrDQueryBean item) {
        holder.setText(R.id.item_trash_summary_title, item.getDepartmentId());
        holder.setText(R.id.item_trash_summary_weight, "总重：" + item.getTotal_weight() + "KG");
      /*  holder.setText(R.id.item_trash_summary_start_time, "到达时间：" + item.getArriveTime());
        holder.setText(R.id.item_trash_summary_end_time, "离开时间：" + item.getLeaveTime());*/
        holder.setText(R.id.item_trash_summary_g, item.getgTotal_weight() + "KG");
        holder.setText(R.id.item_trash_summary_s, item.getsTotal_weight() + "KG");
        holder.setText(R.id.item_trash_summary_b, item.getbTotal_weight() + "KG");
        holder.setText(R.id.item_trash_summary_h, item.gethTotal_weight() + "KG");
        holder.setText(R.id.item_trash_summary_y, item.getyTotal_weight() + "KG");
    }
}